package cn.chen.数据结构.链表;

public class DoubleLinkedListTest {

    public static void main(String[] args){

        DoubleLinkedList list=new DoubleLinkedList();
        list.addNode(new HeroNodeDouble(1,"wan1","chen1"));
        list.addNode(new HeroNodeDouble(8,"wan8","chen8"));
        list.insertNode(new HeroNodeDouble(7,"wan7","chen7"));
        list.insertNode(new HeroNodeDouble(9,"wan9","chen9"));

        list.showNode();

        list.removeNode(1);
        list.showNode();

        list.updateNode(new HeroNodeDouble(8,"8888","8888"));
        list.showNode();
    }
}
